html,
body {
  max-width: 640px;
  min-width: 320px;
  margin: 0  auto;
}
.layout {
  max-width: 640px;
  height: 100%;
  background-color: #cccccc73;
  position: relative;
  /*京东头部*/
  /*轮播图样式*/
  /*导航样式*/
  /*产品样式*/
}
.layout .jd_header {
  z-index: 999;
  width: 100%;
  max-width: 640px;
  min-width: 320px;
  height: 40px;
  background-color: rgba(235, 25, 34, 0);
  position: fixed;
  /*
    1.如果设置了left/right...值，它会参照视口
    2.如果没有设置，它会保留元素的原始位置
    */
}
.layout .jd_header form {
  width: 100%;
  height: 100%;
  padding: 0px 60px 0px 70px;
}
.layout .jd_header form > input {
  width: 100%;
  height: 30px;
  margin-top: 5px;
  border-radius: 30px;
  padding-left: 30px;
}
.layout .jd_header form::before {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  top: 8px;
  left: 80px;
  background: url("../images/jd-sprites.png");
  background-size: 200px 200px ;
  background-position: -60px -107px;
}
.layout .jd_header .jd_logo {
  width: 60px;
  height: 25px;
  position: absolute;
  left: 5px;
  top: 7px;
  background: url("../images/jd-sprites.png");
  background-size: 200px 200px ;
  background-position: 0 -107px;
}
.layout .jd_header .jd_login {
  width: 60px;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  color: #fff;
  text-align: center;
  line-height: 40px;
}
.layout .jd_banner {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.layout .jd_banner > ul:first-of-type {
  width: 800%;
  /*相对定位的定位参照是自身的原始位置--与fixed没有设置定位值一样*/
  position: relative;
  left: -100%;
}
.layout .jd_banner > ul:first-of-type > li {
  width: 12.5%;
  float: left;
}
.layout .jd_banner > ul:first-of-type > li > a {
  width: 100%;
  /*设置块级元素：与下面的不一样*/
  display: block;
}
.layout .jd_banner > ul:first-of-type > li > a > img {
  width: 100%;
  /*清除基线*/
  display: block;
}
.layout .jd_banner > ul:last-of-type {
  width: 118px;
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translate(-50%, 0);
}
.layout .jd_banner > ul:last-of-type > li {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #fff;
  margin-left: 10px;
  float: left;
}
.layout .jd_banner > ul:last-of-type > li.now {
  background-color: #fff;
}
.layout .jd_banner > ul:last-of-type > li:first-of-type {
  margin-left: 0px;
}
.layout .jd_nav {
  width: 100%;
  background-color: #fff;
  padding: 10px;
}
.layout .jd_nav ul {
  width: 100%;
}
.layout .jd_nav ul li {
  width: 25%;
  float: left;
  text-align: center;
}
.layout .jd_nav ul li img {
  width: 40px;
}
.layout .jd_nav ul li:nth-last-of-type(-n + 4) {
  margin-top: 10px;
}
.layout .jd_product .jd_pro_box {
  margin-top: 10px;
  background-color: #fff;
  /*添加产品的公共样式*/
}
.layout .jd_product .jd_pro_box .jd_pro_tip {
  line-height: 30px;
}
.layout .jd_product .jd_pro_box .jd_pro_tip > h3 {
  height: 30px;
  line-height: 30px;
  border-bottom: 1px solid #ccc;
  position: relative;
  padding-left: 25px;
  color: #666;
}
.layout .jd_product .jd_pro_box .jd_pro_tip > h3::before {
  content: '';
  width: 3px;
  height: 12px;
  background-color: #e92322;
  position: absolute;
  left: 15px;
  top: 9px;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_tip {
  border-bottom: none;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_tip .left {
  float: left;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_tip .left .sk_clock {
  width: 16px;
  height: 20px;
  display: block;
  float: left;
  background: url("../uploads/seckill-icon.png");
  background-size: 16px 20px ;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_tip .left .sk_text {
  float: left;
  color: #e92322;
  font-size: 13px;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_tip .left .sk_time {
  float: left;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_tip .left .sk_time > span {
  background-color: #000;
  color: #fff;
  padding: 0px 3px;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_tip .left .sk_time > span:nth-of-type(3n) {
  color: #000;
  background-color: transparent;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_tip .right {
  float: right;
  text-align: center;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_content {
  padding: 10px;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_content ul > li {
  width: 33.33%;
  float: left;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_content ul > li > a {
  width: 100%;
  display: block;
}
.layout .jd_product .jd_pro_box.jd_sk .jd_pro_content ul > li > a > img {
  width: 60%;
}
.layout .jd_product .jd_pro_box .a_50 {
  width: 50%;
  display: block;
  float: left;
}
.layout .jd_product .jd_pro_box .a_50 > img {
  width: 100%;
  display: block;
}
.layout .jd_product .jd_pro_box .b_left {
  border-left: 1px solid #ccc;
}
.layout .jd_product .jd_pro_box .b_right {
  border-right: 1px solid #ccc;
}
.layout .jd_product .jd_pro_box .b_bottom {
  border-bottom: 1px solid #ccc;
}
